<?php
echo "<table class='table_resume'><tr>";
    echo "<td valign='top' width='260px'>";
    echo $this->element('menu_resume'); 
    echo "</td>";
    echo "<td class='pemisah'></td>";
    echo "<td valign='top'>";
    echo "<div class='form'>";
    echo "<h2> Upload Photo</h2>";
    echo "<hr color='#2A7EF7'>";
        echo "<div class='kotak2'>"; 
        echo $form->create('Resume',array('action'=>'photo','type'=>'file','onsubmit'=>'return validation'));
            if($this->data['Resume']['upload_photo']!='')
            {
                echo "<div class='input'><label>&nbsp</label>";
                    echo $html->image('../'.$this->data['Resume']['upload_photo'], array('alt' => 'Foto anda bermasalah','class'=>'photo'));
                    echo "<br>";
                    echo "<label> &nbsp </label>";
                    echo $html->link('[ Delete Photo ]',array('controller'=>'resumes','action'=>'delete_photo'),array(),'Anda yakin ?',false);
                echo "</div>";
                echo $form->input('upload_photo',array('type'=>'file','label'=>'Edit Photo'));
            }
            else
            {
                echo $form->input('upload_photo',array('type'=>'file','label'=>'Upload Photo'));
            }
		    echo $form->input('id',array('type'=>'hidden'));
            echo "<div class='input'><label> &nbsp </label><input type='submit' value='Save & Next'></div>";
        echo "</form>";
        echo "</div>";
        echo ":. Please provide  <span class='red'>Image (.jpg or .jpeg or .gif or .png) </span> file";
        echo "<br>:. Dimensi yang ideal untuk menyimpan foto Anda <span class='red'>110 x 150</span> pixels";
    echo "</div>";
    echo "</td>";
echo "</tr></table>"; 
?>
